﻿using System;
using System.Collections.Generic;
using System.Text;

using efish.Framework.Model;

namespace efish.Framework.Dao
{
    public class CategoriesDAO : BaseDAO<Category>
    {
        public IList<Category> GetTopCategories()
        {
            return this.FindByNamedQueryAndNamedParam<Category>("GetByParentID", "ParentID", 0);
        }

        public IList<Category> GetCategories(int categoryid)
        {
            return this.FindByNamedQueryAndNamedParam<Category>("GetByParentID", "ParentID", categoryid);
        }
    }
}
